package org.darkforest.ucenter.service;

import org.darkforest.model.Admin;
import org.darkforest.model.Seller;
import org.darkforest.vo.StoreSellerVo;

import java.util.List;

/**
 * Created by valentina on 15/4/26.
 */
public interface SellerService {

    /**
     * 商家、代理商登录
     * @param seller_name
     * @param pwd
     * @return
     */
    public StoreSellerVo sellerLogin(String seller_name, String pwd);

    /**
     *
     * @param admin_name
     * @param pwd
     * @return
     */
    public Admin adminLogin(String admin_name, String pwd);

    /**
     * 获取不同状态商品总数
     * @param storeId
     * @param goodsState
     * @param verify
     * @return
     */
    public Integer getGoodsNum(int storeId, int goodsState, int verify);

    /**
     * 获取上传图片总数
     * @param storeId
     * @return
     */
    public Integer getPicNum(int storeId);

    /**
     * 根据条件查询
     * @param seller
     * @return
     */
    List<Seller> findByCondition(Seller seller);
}
